#define _CRT_SECURE_NO_WARNINGS 1

#include"string.h"

namespace F
{
    void test1()
    {
        string s1 = "hello world";
        string s2 = "xxx";

        print_str(s1);
    }

    void test2()
    {
        string s3 = "abcd";
        string s4 = "zbcd";

        if (s3 >= s4)
        {
            print_str(s3);
        }
        else
        {
            print_str(s4);
        }
    }

    void test3()
    {
        string s1 = "hello world!!!!!!!!!!!!!!!!";
        s1.resize(40, 'C');
        print_str(s1);
    }

    void test4()
    {
        string s1 = "hello world!!!!!!!!!!!!!!!!";
        cout << s1 << endl;
        string s2;
        cin >> s2;
        cout << s2 << endl;
    }
    void test5()
    {
        string s1 = "hello world!!!!!!!!!!!!!!!!";
        const char* tmp=s1.c_str();
        cout << tmp << endl;
    }
}
int main()
{
    F::test5();
    return 0;
}